<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>微店优惠券礼包列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<link href="cxcalendar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../script/jquery-1.4.4.min.js"></script>
<script language="javascript" src="../script/Calendar-new.js"></script>
<script>
$(".a-opear").live('click',function(){//生成优惠券礼包
    window.parent.iframe_form("create_coupons_package", '生成优惠券礼包', '<{$config.weburl}>/admin/module.php?m=micro_shop&s=coupons_package_create.php', 800,500);
    return false;
});
</script>
</head>
<body>
<div class="container">
    <div class="flow">
        <div class="itemtitle">
            <h3>礼包列表</h3>
            <ul>
                <li><a href="?m=micro_shop&s=coupons_list.php"><span>优惠券列表</span></a></li>
                <li><a href="?m=micro_shop&s=coupons_package_config_list.php"><span>礼包配置列表</span></a></li>
            </ul>
            <ul style="float:right">
                <li><a href="javascript:void(0);" class="a-opear"><span>生成礼包</span></a></li>
            </ul>
        </div>
    </div>
    <div class="h35"></div>
    
    <form action="" method="get">
	    <input type="hidden" name="m" value="<{$smarty.get.m}>">
	    <input type="hidden" name="s" value="<{$smarty.get.s}>">
	    <table>
	        <tr>
	        	<td>会员：</td>
                <td>
                	<textarea name="member_id" placeholder="会员ID，支持逗号分隔的多个"><{$smarty.get.member_id}></textarea>
               	</td>
	            <td>
                	<input type="submit" value="搜索" />
            	</td>
	        </tr>
	    </table>
    </form>
    
    <table class="table product">
       <tbody>
       <tr class="header">
            <th width="100">礼包ID</th>
            <th width="100">店铺</th>
            <th width="100">礼包名称</th>
            <th width="100">状态</th>
            <th width="100">创建人</th>
            <th width="100">创建时间</th>
        </tr>
        <{foreach item=list key=key from=$de.list}>
        <tr>
            <td><{$list.id}></td>
            <td>店铺ID:<{$list.member_id}><br />店铺名称:<{$list.shop_name}></td>
            <td><{$list.package_name}></td>
            <td>
            <{if $list.status==0}>禁用<{/if}>
            <{if $list.status==1}>正常<{/if}>
            <{if $list.status==-1}>删除<{/if}>
            </td>
            <td><{$list.create_user}></td>
            <td><{$list.create_time}></td>
        </tr>
        <{foreachelse}>
        <tr>
            <td class="norecord" colspan="99"><i></i><span>暂无符合条件的数据记录</span></td>
        </tr>
        <{/foreach}>
		</tbody>
        <tfoot>
            <tr>
                <td colspan="99">
                	<div class="fl">每页最多显示： <{$de.perPageRows}>条</div>
                    <div class="page"><{$de.page}></div>
                    <div class="fr">共有<{$de.count}>条记录</div>
                </td>
            </tr>
        </tfoot>
    </table>
</div>
</body>
</html>